﻿@using ClinicaDentalApp.Models.PlanDeTratamiento
@model PlanDeTratamientoModelInput

@{
    ViewBag.Title = "AgregarPlanDeTratamiento";
}

<h2>AgregarPlanDeTratamiento</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div class="FormHora4">
        <h2>PlanDeTratamiento</h2>

        <div class="editor-label">
            @Html.LabelFor(model => model.idPieza)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.idPieza, new SelectList(Model.Piezas, "Id", "NombreGenerico"))
            @Html.ValidationMessageFor(model => model.idPieza)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Accion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Accion)
            @Html.ValidationMessageFor(model => model.Accion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.valor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.valor)
            @Html.ValidationMessageFor(model => model.valor)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.valorRebajado)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.valorRebajado)
            @Html.ValidationMessageFor(model => model.valorRebajado)
        </div>

        @Html.HiddenFor(model => model.idCliente)
        </div>
        <div class="FormHora5"> 
        <p>
            <input type="submit" value="Guardar" />
        </p></div> 
    
}

<div>
    @Html.ActionLink("Volver a Plan de Tratamiento", "PlanDeTratamiento")
</div>
